package com.neu.flashmall.product.service;

import com.github.pagehelper.PageInfo;
import com.neu.flashmall.product.entity.PmsSpuInfo;
import com.neu.flashmall.product.vo.FatherGoodVo;
import com.neu.flashmall.product.vo.FilterCondition;
import com.neu.flashmall.product.vo.RecommendSpuListVo;
import com.neu.flashmall.product.vo.SpuVo;

import java.util.List;

public interface PmsSpuInfoService {
    PageInfo<PmsSpuInfo> getPaged(int pageNum, int pageSize);

    String deleteByPrimaryKey(Long id);

    String insert(PmsSpuInfo record);

    PmsSpuInfo selectByPrimaryKey(Long id);

    String updateByPrimaryKey(PmsSpuInfo record);

    String changePublishStatus(long id);

    PmsSpuInfo getOne(Long id);

    RecommendSpuListVo getRecommendSpuListByCategory(Long c);

    List<SpuVo> getFilterSpu(FilterCondition condition);

    List<SpuVo> getByCategoryId(Long categoryId,Long pageSize,Long pageNum);

    FatherGoodVo getFatherGoodVo(Long id);

    List<SpuVo> getByKeyWord(String keyWord);
}
